import { ElMessageBox } from "element-plus"
/**
 * 消息弹框
 */
const confirm = {
    delete() {
        return ElMessageBox.confirm("此操作将永久删除该数据, 是否继续？", "提示", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "warning",
            icon: "Delete",
        });
    },

    submit() {
        return ElMessageBox.confirm("确认提交？", "提示", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "warning",
            icon: "Warning",
        });
    },

    export(message, title) {
        return ElMessageBox.confirm(message, title, {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            type: "warning",
            icon: "Warning",
            dangerouslyUseHTMLString: true,
        });
    },

}

export default confirm;
